package example_09.demo_01;

import java.util.Arrays;

public class fangfa_01 {
    public static void main(String[] args) {
        long begin = System.currentTimeMillis();
        int [] nums = new int[8000000];
        for (int i=0;i<nums.length;i++){
            int n =(int)(Math.random()*10000000);
            nums[i]=n;
        }
        Arrays.sort(nums);
        long end = System.currentTimeMillis();
        System.out.println(end-begin);
    }
}
